home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / tcp / cp4_2_1.lha / cp4_NOTREG / Install_CP4.2 < prev    next >
Text File  |  1995-04-16  |  12KB  |  524 lines

  1. ;Installer V4 For AmiTCP Control Panel V4.2
  2. ;
  3. ;©Martin Hunt 1995
  4. ;
  5. ;
  6. (set amitcpdir
  7.    (askdir
  8.        (prompt "Where is AmiTCP installed?")
  9.        (help @askdir-help)
  10.        (default "dh1:amitcp")
  11.    )
  12. )
  13.  
  14. (makeassign "amitcp" amitcpdir)
  15.  
  16. (set @default-dest
  17.    (askdir
  18.        (prompt "Where is AmiTCP Control Panel Installed?")
  19.        (help @askdir-help)
  20.        (default "sys:wbstartup")
  21.    )
  22. )
  23.  
  24. (copyfiles
  25.    (prompt "Copying AmiTCP Control Panel to " @default-dest )
  26.    (help @copyfiles-help)
  27.    (source "cp_MainProg/controlpanel4.2")
  28.    (dest @default-dest)
  29.    (infos)
  30. )
  31. (copyfiles
  32.    (prompt "Copying AmiTCP Control Panel to " @default-dest )
  33.    (help @copyfiles-help)
  34.    (source "cp_MainProg/controlpanel.exe")
  35.    (dest "c:")
  36. )
  37.  
  38. (set @doc-dest
  39.    (askdir
  40.        (prompt "Where do you want to install AmiTCP Control Panel's Documents?")
  41.        (help @askdir-help)
  42.        (default "amitcp:docs")
  43.    )
  44. )
  45.  
  46.  
  47. (copyfiles
  48.    (prompt "Copying AmiTCP Control Panel Docs to " @doc-dest )
  49.    (help @copyfiles-help)
  50.    (source "docs")
  51.    (all)
  52.    (dest @doc-dest)
  53.    (infos)
  54.    (confirm)
  55. )
  56.  
  57. (copyfiles
  58.    (prompt "Copying AmiTCP Control Panel Scripts and Commands to AmiTCP:bin" )
  59.    (help @copyfiles-help)
  60.    (source "bin")
  61.    (all)
  62.    (dest "Amitcp:bin")
  63.    (infos)
  64.    (confirm)
  65. )
  66.  
  67. (copylib
  68.    (prompt "Copying AmiTCP Control Panel Libs to Libs:" )
  69.    (help @copyfiles-help)
  70.    (source "Libs/rexxarplib.library")
  71.    (dest "Libs:")
  72.    (infos)
  73.    (confirm)
  74. )
  75.  
  76. (copylib
  77.    (prompt "Copying AmiTCP Control Panel Libs to Libs:" )
  78.    (help @copyfiles-help)
  79.    (source "Libs/rexxreqtools.library")
  80.    (dest "Libs:")
  81.    (infos)
  82.    (confirm)
  83. )
  84.  
  85. (copylib
  86.    (prompt "Copying AmiTCP Control Panel Libs to Libs:" )
  87.    (help @copyfiles-help)
  88.    (source "Libs/rexxsupport.library")
  89.    (dest "Libs:")
  90.    (infos)
  91.    (confirm)
  92. )
  93.  
  94. (copylib
  95.    (prompt "Copying AmiTCP Control Panel Libs to Libs:" )
  96.    (help @copyfiles-help)
  97.    (source "Libs/rexxplslib.library")
  98.    (dest "Libs:")
  99.    (infos)
  100.    (confirm)
  101. )
  102.  
  103. (set left
  104.     (asknumber
  105.        (prompt "Enter How Far From The Left \n Of The Screen Do You Want \n Control Panel To Appear")
  106.        (help @asknumber-help)
  107.        (range 0 1200)
  108.        (default 20)
  109.     )
  110. )
  111.  
  112. (set top
  113.     (asknumber
  114.        (prompt "Enter How Far Down The Screen \n Do You Want Control Panel To Appear")
  115.        (help @asknumber-help)
  116.        (range 0 600)
  117.        (default 30)
  118.     )
  119. )
  120.  
  121. (set device1
  122.    (askbool
  123.       (prompt "Select The Device\n You Use To\nConnect To The Net\nThis Is Usually\n\nSLIP")
  124.       (default 1)
  125.       (choices "SLIP" "OTHER")
  126.       (help "IF Not Sure It Is Probably SLIP")
  127.    )  
  128. )
  129.  
  130. (if(= device1 1)
  131.    (set DEVICE ("DEVICE = SLIP\n"))
  132.    (set DEVICE ("DEVICE = PPP\n"))
  133. )
  134.  
  135. (set Status1
  136.    (askbool
  137.       (prompt "\nDo You Want\nControl Panel\nStatus Information")
  138.       (default 1)
  139.       (choices "YES" "NO")
  140.       (help "Oh dear, just make a decsion!")
  141.    )
  142. )
  143.  
  144. (if(= Status1 1)
  145.    (set STATUS ("STATUS = YES\n"))
  146.    (set STATUS ("STATUS = NO\n"))
  147. )
  148.  
  149. (message "\nControl Panel V4 runs various programs.\nAs everybodies Amitcp set up varies\nit is necessary to configure the particular\n programs you are using.\n")
  150. (set link
  151.    (askfile
  152.       (prompt "What Script Do You Use To Connect To The Net?")
  153.       (help @askfile-help)
  154.       (default "amitcp:bin/link_gui.exe")
  155.    )
  156. )
  157.  
  158. (set mail
  159.    (askfile
  160.        (prompt "What Mail Program Do You Use?")
  161.        (help @askfile-help)
  162.        (default "amitcp:bin/mail")
  163.    )
  164. )
  165.  
  166. (set news
  167.    (askfile
  168.        (prompt "What News Program Do You Use?")
  169.        (help @askfile-help)
  170.        (default "amitcp:bin/grn")
  171.    )
  172. )
  173.  
  174. (set ftp
  175.    (askfile
  176.        (prompt "What FTP Program Do You Use?")
  177.        (help @askfile-help)
  178.        (default "amitcp:bin/gui-ftp")
  179.    )
  180. )
  181.  
  182. (set WWW
  183.    (askfile
  184.        (prompt "What WWW Browser Do You Use?")
  185.        (help @askfile-help)
  186.        (default "amitcp:bin/amosaic")
  187.    )
  188. )
  189.  
  190. (set Gopher
  191.    (askfile
  192.        (prompt "What Gopher Program Do You Use?")
  193.        (help @askfile-help)
  194.        (default "amitcp:bin/gopher")
  195.    )
  196. )
  197.  
  198. (set IRC
  199.    (askfile
  200.        (prompt "What IRC Program Do You Use?")
  201.        (help @askfile-help)
  202.        (default "amitcp:bin/gv")
  203.    )
  204. )
  205.  
  206. (set UUDECODER
  207.    (askfile
  208.        (prompt "What UUDecoder Do You Use?")
  209.        (help @askfile-help)
  210.        (default "amitcp:bin/uuxt-gui")
  211.    )
  212. )
  213.  
  214. (set DeArchiver
  215.    (askfile
  216.        (prompt "What DeArchiver Do You Use?")
  217.        (help @askfile-help)
  218.        (default "amitcp:bin/guiarc")
  219.    )
  220. )
  221.  
  222. (set newsed
  223.    (askfile
  224.        (prompt "What News Group Editor Do You Use?")
  225.        (help @askfile-help)
  226.        (default "amitcp:bin/newsed_gui.exe")
  227.    )
  228. )
  229.  
  230.  
  231. (message "Control Panel V4\n has 2 buttons and 5 menu items\n which can be configured by the user,\n\n If you do not require these options\n just keep pressing proceed")
  232. (set option1Text
  233.    (askstring
  234.       (prompt "Enter Menu and Button Text For Option 1/nIt Must Consist Of 1 Word Only")
  235.       (help @askstring-help)
  236.       (default " ")
  237.    )
  238. )
  239. (set option1prog
  240.    (askfile
  241.       (prompt "Which Program Should This Option Run?")
  242.       (help @askfile-help)
  243.       (default " ")
  244.    )
  245. )
  246. (set option2Text
  247.    (askstring
  248.       (prompt "Enter Menu and Button Text For Option 2\nIt Must Consist Of 1 Word Only")
  249.       (help @askstring-help)
  250.       (default " ")
  251.    )
  252. )
  253. (set option2prog
  254.    (askfile
  255.       (prompt "Which Program Should This Option Run?")
  256.       (help @askfile-help)
  257.       (default " ")
  258.    )
  259. )
  260. (set option3Text
  261.    (askstring
  262.       (prompt "Enter Menu Text For Option 3\nIt Must Consist Of 1 Word Only")
  263.       (help @askstring-help)
  264.       (default " ")
  265.    )
  266. )
  267. (set option3prog
  268.    (askfile
  269.       (prompt "Which Program Should This Option Run?")
  270.       (help @askfile-help)
  271.       (default " ")
  272.    )
  273. )
  274. (set option4Text
  275.    (askstring
  276.       (prompt "Enter Menu Text For Option 4\nIt Must Consist Of 1 Word Only")
  277.       (help @askstring-help)
  278.       (default " ")
  279.    )
  280. )
  281. (set option4prog
  282.    (askfile
  283.       (prompt "Which Program Should This Option Run?")
  284.       (help @askfile-help)
  285.       (default " ")
  286.    )
  287. )
  288. (set option5Text
  289.    (askstring
  290.       (prompt "Enter Menu Text For Option 5\nIt Must Consist Of 1 Word Only")
  291.       (help @askstring-help)
  292.       (default " ")
  293.    )
  294. )
  295. (set option5prog
  296.    (askfile
  297.       (prompt "Which Program Should This Option Run?")
  298.       (help @askfile-help)
  299.       (default " ")
  300.    )
  301. )
  302. (message "Control Panel V4\n allows the user details for 4 users to be preset,\n and quickly changed by using a menu.\n\nIf you don't want use this facility\njust keep pressing proceed.")
  303. (set User1Text
  304.    (askstring
  305.       (prompt "Enter Menu Text For User 1\nIt Must Consist Of 1 Word Only")
  306.       (help @askstring-help)
  307.       (default "")
  308.    )
  309. )
  310. (set user1name
  311.    (askstring
  312.       (prompt "Enter the User Name of User 1\nThis Must Consist Of One Word Only")
  313.       (help @askstring-help)
  314.       (default "")
  315.    )
  316. )
  317. (set user1realname
  318.    (askstring
  319.       (prompt "Enter the Real Name of User 1")
  320.       (help @askstring-help)
  321.       (default "")
  322.    )
  323. )
  324.  
  325. (set User2Text
  326.    (askstring
  327.       (prompt "Enter Menu Text For User 2\nIt Must Consist Of 1 Word Only")
  328.       (help @askstring-help)
  329.       (default "")
  330.    )
  331. )
  332. (set user2name
  333.    (askstring
  334.       (prompt "Enter the User Name of User 2\nThis Must Consist Of One Word Only")
  335.       (help @askstring-help)
  336.       (default "")
  337.    )
  338. )
  339. (set user2realname
  340.    (askstring
  341.       (prompt "Enter the Real Name of User 2")
  342.       (help @askstring-help)
  343.       (default "")
  344.    )
  345. )
  346. (set User3Text
  347.    (askstring
  348.       (prompt "Enter Menu Text For User 3\nIt Must Consist Of 1 Word Only")
  349.       (help @askstring-help)
  350.       (default "")
  351.    )
  352. )
  353. (set user3name
  354.    (askstring
  355.       (prompt "Enter the User Name of User 3\nThis Must Consist Of One Word Only")
  356.       (help @askstring-help)
  357.       (default "")
  358.    )
  359. )
  360. (set user3realname
  361.    (askstring
  362.       (prompt "Enter the Real Name of User 3")
  363.       (help @askstring-help)
  364.       (default "")
  365.    )
  366. )
  367. (set User4Text
  368.    (askstring
  369.       (prompt "Enter Menu Text For User 4\nIt Must Consist Of 1 Word Only")
  370.       (help @askstring-help)
  371.       (default "")
  372.    )
  373. )
  374. (set user4name
  375.    (askstring
  376.       (prompt "Enter the User Name of User 4\nThis Must Consist Of One Word Only")
  377.       (help @askstring-help)
  378.       (default "")
  379.    )
  380. )
  381. (set user4realname
  382.    (askstring
  383.       (prompt "Enter the Real Name of User 4")
  384.       (help @askstring-help)
  385.       (default "")
  386.    )
  387. )
  388. (message "Control Panel V4\nAllows You To Change The Pop You Use\nBy Selecting A Menu option\n\nIf You Do Not require This Option \nJust Keep Pressing Proceed")
  389. (set pop1text
  390.    (askstring
  391.       (prompt "Enter The Menu Text For POP1\nThis Must Consist Of One Word Only")
  392.       (help @askstring-help)
  393.       (default "")
  394.    )
  395. )
  396. (set pop1file
  397.    (askfile
  398.       (prompt "What Dialscript Is Used To Dial This POP")
  399.       (help @askfile)
  400.       (default "")
  401.    )
  402. )
  403. (set pop2text
  404.    (askstring
  405.       (prompt "Enter The Menu Text For POP2\nThis Must Consist Of One Word Only")
  406.       (help @askstring-help)
  407.       (default "")
  408.    )
  409. )
  410. (set pop2file
  411.    (askfile
  412.       (prompt "What Dialscript Is Used To Dial This POP")
  413.       (help @askfile)
  414.       (default "")
  415.    )
  416. )
  417. (set pop3text
  418.    (askstring
  419.       (prompt "Enter The Menu Text For POP3\nThis Must Consist Of One Word Only")
  420.       (help @askstring-help)
  421.       (default "")
  422.    )
  423. )
  424. (set pop3file
  425.    (askfile
  426.       (prompt "What Dialscript Is Used To Dial This POP")
  427.       (help @askfile)
  428.       (default "")
  429.    )
  430. )
  431.  
  432.  
  433. (Set intro1 "; Control Panel Configuration File\n")
  434. (Set intro2 "; CPv4.0 23/3/95\n")
  435. (set blankline "\n")
  436. (Set intro3 "; Requester Position\n")
  437. (set leftpos ("LEFT = %ld \n" left))
  438. (set toppos ("TOP = %ld \n" top))
  439. (set intro4 "; Where Is AmiTCP stored?\n")
  440. (set amitcpdirt ("AMITCPDIR = %s \n" amitcpdir))
  441. (set Intro5 "; Programs Used By Control Panel\n")
  442. (set linkprog ("Link = %s \n" link))
  443. (set mailprog ("Mail = %s \n" mail))
  444. (set newsprog ("News = %s \n" news))
  445. (set FtpProg ("FTP = %s \n" ftp))
  446. (set WWWprog ("WWW = %s \n" www))
  447. (Set GopherProg ("Gopher = %s \n" gopher))
  448. (set IRCprog ("IRC = %s \n" irc))
  449. (set tracerouteprog ("TRACEROUTE = Amitcp:bin/ping.traceroute.exe\n"))
  450. (set pingprog ("PING = AMITCP:bin/ping.traceroute.exe\n"))
  451. (set archieprog ("ARCHIE = Amitcp:bin/archie_gui.exe\n"))
  452. (set fingerprog ("FINGER = Amitcp:bin/finger_gui.exe\n"))
  453. (set autoprog ("AUTO = AMITCP:bin/auto.exe\n"))
  454. (Set UUDecoderProg ("UUDECODER = %s \n" uudecoder))
  455. (Set Dearchiverprog ("DEARCHIVER = %s \n" dearchiver))
  456. (Set NewsEdProg ("NEWSEDPROG = %s \n" NewsEd))
  457. (set UserOptions ("; Control Panel User Options\n"))
  458. (set option1 ("OPTION1 = %s %s\n" option1text option1prog))
  459. (set option2 ("OPTION2 = %s %s\n" option2text option2prog))
  460. (set option3 ("OPTION3 = %s %s\n" option3text option3prog))
  461. (set option4 ("OPTION4 = %s %s\n" option4text option4prog))
  462. (set option5 ("OPTION5 = %s %s\n" option5text option5prog))
  463. (set Users ("; Control Panel Users\n"))
  464. (set user1 ("USER1 = %s %s %s \n" user1text user1name user1realname))
  465. (set user2 ("USER2 = %s %s %s \n" user2text user2name user2realname))
  466. (set user3 ("USER3 = %s %s %s \n" user3text user3name user3realname))
  467. (set user4 ("USER4 = %s %s %s \n" user4text user4name user4realname))
  468. (set Pops ("; Control Panel Pop's\n"))
  469. (set pop1 ("POP1 = %s %s\n" pop1text pop1file))
  470. (set pop2 ("POP2 = %s %s\n" pop2text pop2file))
  471. (set pop3 ("POP3 = %s %s\n" pop3text pop3file))
  472. (set endofconfig "; End Of Control Panel Config File")
  473. (textfile
  474.    (dest "s:cp.config")
  475.    (append intro1)
  476.    (append intro2)
  477.    (append blankline)
  478.    (append intro3)
  479.    (append leftpos)
  480.    (append toppos)
  481.    (append blankline)
  482.    (append Intro4)
  483.    (append amitcpdirt)
  484.    (append blankline)
  485.    (append device)
  486.    (append blankline)
  487.    (append status)
  488.    (append blankline)
  489.    (append intro5)
  490.    (append linkprog)
  491.    (append mailprog)
  492.    (append newsprog)
  493.    (append ftpprog)
  494.    (append wwwprog)
  495.    (append gopherprog)
  496.    (append ircprog)
  497.    (append pingprog)
  498.    (append tracerouteprog)
  499.    (append autoprog)
  500.    (append archieprog)
  501.    (append fingerprog)
  502.    (append uudecoderprog)
  503.    (append dearchiverprog)
  504.    (append newsedprog)
  505.    (append blankline)
  506.    (append useroptions)
  507.    (append option1)
  508.    (append option2)
  509.    (append option3)
  510.    (append option4)
  511.    (append option5)
  512.    (append users)
  513.    (append user1)
  514.    (append user2)
  515.    (append user3)
  516.    (append user4)
  517.    (append pops)
  518.    (append pop1)
  519.    (append pop2)
  520.    (append pop3)
  521.    (append endofconfig)
  522. )
  523.  
  524.